<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改管理费')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cost-edit" th:object="${cost}">
            <input name="costId" th:field="*{costId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">主持人ID：</label>
                <div class="col-sm-8">
                    <input name="costHostid" th:field="*{costHostid}" class="form-control" type="text" disabled="disabled">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">主持人名字：</label>
                <div class="col-sm-8">
                    <input name="costHostName" th:field="*{costHostName}" class="form-control" type="text" disabled="disabled">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">管理费：</label>
                <div class="col-sm-8">
                    <input name="costMoney" th:field="*{costMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">滞纳金：</label>
                <div class="col-sm-8">
                    <input name="costOverdue" th:field="*{costOverdue}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">缴纳状态(0：已缴纳，1：待缴纳，2：待缴纳一级延迟，3：待缴纳二级延迟)，4：已缴纳一级延迟，5：已缴纳二级延迟</label>
                <div class="col-sm-8">
                    <input name="costPaystate" th:field="*{costPaystate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">缴纳时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="costPaytime" th:value="${#dates.format(cost.costPaytime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "other/cost";
        $("#form-cost-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-cost-edit').serialize());
            }
        }

        $("input[name='costPaytime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>